const RxElement = {}

// function
RxElement.getElButtonIdFun = (btnId = '', cb = ()=> {}) => {
  RxElement.getElButtonId(btnId).onclick = function (e) {
    cb && cb(e)
  }
}

// element
RxElement.getElButtonId = (btnId = '') => {
  return document.getElementById(btnId)
}

// element
RxElement.getElButtonClass = (btnClass = '') => {
  return document.getElementsByClassName(btnClass)
}

export default RxElement